#ifndef __UDP_PROTO_H__
#define __UDP_PROTO_H__

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>

#define SERVER_IP "192.168.102.48"
#define SERVER_PORT "9999"

#define NAMESIZE  32

//数据类型
struct msg_t {
	int8_t id;
	char name[NAMESIZE];
}__attribute__((packed)); //单字节对齐

#endif
